package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 博客收集历史
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:UserBlogCollectHistory")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_user_blog_collect")
public class UserBlogCollect implements Serializable {

    private static final long serialVersionUID = -540819399144462260L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Integer userId;

    /**
     * 博客编号
     */
    @TableField(value = "blog_id")
    @ApiModelProperty(value = "博客编号")
    private Integer blogId;

    /**
     * 创建时间（用户点击收藏按钮的时间）
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间（用户点击收藏按钮的时间）")
    private LocalDateTime createTime;

}
